﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SES.CMS.BL;

namespace SES.CMS.Modules
{
    public partial class ucFooter : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                rptHuongDanMuaHangDataSource();
               rptChinhSachDataSource();
            }
        }
        private void rptHuongDanMuaHangDataSource()
        {
            rptHuongDanMuaHang.DataSource = new cmsCategoryBL().SelectByParent(5);
            rptHuongDanMuaHang.DataBind();
        }
        protected string FriendlyUrl(string strTitle)
        {
            return Ultility.Change_AV(strTitle);
        }
        private void rptChinhSachDataSource()
        {
            rptChinhSach.DataSource = new cmsCategoryBL().SelectByParent(10);
            rptChinhSach.DataBind();
        }
    }
}